package com.zmx.gateway.properties;

import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

import java.util.Set;

/**
 * @Description: 请求验证属性配置
 * @ClassName: MallAuthProperties
 * @Author zhaomxr
 * @Date 2021-11-12 14:19
 */
@Data
@ToString
@Configuration
@ConfigurationProperties(prefix = "mall.auth")
public class MallAuthProperties {

    /**
     * 是否开启过滤
     */
    private boolean enabled;
    /**
     * 忽略的请求url
     */
    private Set<String> ignoreUrls;
    /**
     * 拦截的url
     */
    private Set<String> interceptUrls;
    /**
     * 是否开启黑名单
     */
    private boolean enableblacklist;
    /**
     * 是否开启ip黑名单
     */
    private boolean enableblacklistIp;
    /**
     * 黑名单
     */
    private Set<String> blacklistUrls;
    /**
     * 允许referer源
     */
    private Set<String> refererList;
}
